
import { MyDate } from './MyDate'
import { MyTime } from './MyTime'

//封装日程数据的数据结构
export class Schedule {
  public ID:number = -1
  public title:string = ""
  public description:string = ""
  public date:string = MyDate.today()
  public start:string = MyTime.now()
  public end:string = MyTime.now()
  public color = Schedule.COLORS[0]

  public static COLORS:string[] = ['#F9423A','#F6A04D','#F3D321','#00BC7B','#486AFF','#4D49BE']

  public toString():string {
    return this.ID + "," + this.title + "," + this.description + "," + this.date + "," + this.start + "," + this.end + "," + this.color
  }
}